# python3.9
# pip install moviepy
from moviepy.editor  import VideoFileClip
import os

video = VideoFileClip("1.mp4")
time = 0
dir = "./t/"
count = 100
for i in range(count):
    file = os.path.join(dir + str(i) +".jpg")
    time = time + 0.1
    video.save_frame(file, t=time)